package com.ruibang.glass.material.service.cp;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.material.domain.req.bcp.BcpProductsInfoReq;
import com.ruibang.glass.material.entity.bcp.MaterialBcpProductsInInfo;
import com.ruibang.glass.material.entity.bgjj.MaterialBGJJManagementInventory;
import com.ruibang.glass.material.entity.cp.MaterialCPProductsInInfo;

import java.util.List;

/**
 * <p>
 * 半成品入库详情 服务类
 * </p>
 *
 * @author mameng
 * @since 2024-04-02
 */
public interface MaterialCPProductsInInfoService extends IService<MaterialCPProductsInInfo> {
    /**
     * 列表查询
     * @param bcpProductsInfoReq
     * @return
     */
    IPage<MaterialCPProductsInInfo> getPage(BcpProductsInfoReq bcpProductsInfoReq);

    void saveMaterialCPProductsInInfo(MaterialCPProductsInInfo materialCPProductsInInfo);

    void saveMaterialCPProductsInInfoByList(List<MaterialCPProductsInInfo> materialCPProductsInInfo);

    void updateMaterialCPProductsInInfo(MaterialCPProductsInInfo materialCPProductsInInfo);
    /**
     * 库存计算
     * @param materialManagementInventory
     */
    void updateInHouse(MaterialCPProductsInInfo materialManagementInventory);


    MaterialCPProductsInInfo getMaterialCPProductsInInfoById(String id);


    String getINNumber();


}
